View Javadoc
1 /* 2 Project tests 3 4 Copyright (C) 2003 Jose San Leandro Armend?riz 5 jsanleandro@yahoo.es 6 chousz@yahoo.com 7 8 This library is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public 10 License as published by the Free Software Foundation; either 11 version 2 of the License, or (at your option) any later version. 12 13 This library is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 General Public License for more details. 17 18 You should have received a copy of the GNU General Public 19 License along with this library; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 22 Thanks to ACM S.L. for distributing this library under the GPL license. 23 Contact info: jsr000@terra.es 24 Postal Address: c/Playa de Lagoa, 1 25 Urb. Valdecaba?as 26 Boadilla del monte 27 28660 Madrid 28 Spain 29 30 ****************************************************************************** 31 * 32 * Filename: $RCSfile: ContractCheckerAspectTemplateGeneratorTest.java,v $ 33 * 34 * Author: Jose San Leandro Armend?riz 35 * 36 * Description: Executes all tests defined for package 37 * unittests.org.acmsl.contractchecker. 38 * 39 * Last modified by: $Author: chous $ at $Date: 2004/01/11 17:33:05 $ 40 * 41 * File version: $Revision: 1.2 $ 42 * 43 * Project version: $Name: $ 44 * 45 * $Id: ContractCheckerAspectTemplateGeneratorTest.java,v 1.2 2004/01/11 17:33:05 chous Exp $ 46 */ 47 package unittests.org.acmsl.contractchecker; 48 49 /* 50 * Importing project classes. 51 */ 52 // JUnitDoclet begin import 53 import org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator; 54 // JUnitDoclet end import 55 56 /* 57 * Importing JUnit classes. 58 */ 59 import junit.framework.TestCase; 60 61 /* 62 This file is part of JUnitDoclet, a project to generate basic 63 test cases from source code and helping to keep them in sync 64 during refactoring. 65 66 Copyright (C) 2002 ObjectFab GmbH (http://www.objectfab.de/) 67 68 This library is free software; you can redistribute it and/or 69 modify it under the terms of the GNU Lesser General Public 70 License as published by the Free Software Foundation; either 71 version 2.1 of the License, or (at your option) any later 72 version. 73 74 This library is distributed in the hope that it will be useful, 75 but WITHOUT ANY WARRANTY; without even the implied warranty of 76 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 77 GNU Lesser General Public License for more details. 78 79 You should have received a copy of the GNU Lesser General 80 Public License along with this library; if not, write to the 81 Free Software Foundation, Inc., 59 Temple Place, Suite 330, 82 Boston, MA 02111-1307 USA 83 */ 84 85 86 /*** 87 * Tests ContractCheckerAspectTemplateGeneratorTest class. 88 * @version $Revision: 1.2 $ 89 * @see org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator 90 */ 91 public class ContractCheckerAspectTemplateGeneratorTest 92 // JUnitDoclet begin extends_implements 93 extends TestCase 94 // JUnitDoclet end extends_implements 95 { 96 // JUnitDoclet begin class 97 org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator contractcheckeraspecttemplategenerator = null; 98 // JUnitDoclet end class 99 100 /*** 101 * Creates a ContractCheckerAspectTemplateGeneratorTest with given name. 102 * @param name such name. 103 */ 104 public ContractCheckerAspectTemplateGeneratorTest(String name) 105 { 106 // JUnitDoclet begin method ContractCheckerAspectTemplateGeneratorTest 107 super(name); 108 // JUnitDoclet end method ContractCheckerAspectTemplateGeneratorTest 109 } 110 111 /*** 112 * Creates an instance of the tested class. 113 * @return such instance. 114 115 */ 116 public org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator createInstance() 117 throws Exception 118 { 119 // JUnitDoclet begin method testcase.createInstance 120 return org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator.getInstance(); 121 // JUnitDoclet end method testcase.createInstance 122 } 123 124 /*** 125 * Performs any required steps before each test. 126 * @throws Exception if an unexpected situation occurs. 127 */ 128 protected void setUp() 129 throws Exception 130 { 131 // JUnitDoclet begin method testcase.setUp 132 super.setUp(); 133 contractcheckeraspecttemplategenerator = createInstance(); 134 // JUnitDoclet end method testcase.setUp 135 } 136 137 /*** 138 * Performs any required steps after each test. 139 * @throws Exception if an unexpected situation occurs. 140 */ 141 protected void tearDown() 142 throws Exception 143 { 144 // JUnitDoclet begin method testcase.tearDown 145 contractcheckeraspecttemplategenerator = null; 146 super.tearDown(); 147 // JUnitDoclet end method testcase.tearDown 148 } 149 150 /*** 151 * Tests ContractCheckerAspectTemplateGeneratorTestgetInstance() 152 * @throws Exception if an unexpected situation occurs. 153 * @see org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator#getInstance() 154 */ 155 public void testGetInstance() 156 throws Exception 157 { 158 // JUnitDoclet begin method getInstance 159 // JUnitDoclet end method getInstance 160 } 161 162 /*** 163 * Tests ContractCheckerAspectTemplateGeneratorTestcreateContractCheckerTemplate() 164 * @throws Exception if an unexpected situation occurs. 165 * @see org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator#createContractCheckerTemplate(java.lang.String) 166 */ 167 public void testCreateContractCheckerTemplate() 168 throws Exception 169 { 170 // JUnitDoclet begin method createContractCheckerTemplate 171 // JUnitDoclet end method createContractCheckerTemplate 172 } 173 174 /*** 175 * Tests ContractCheckerAspectTemplateGeneratorTestcreateContractCheckerAspectTemplate() 176 * @throws Exception if an unexpected situation occurs. 177 * @see org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator#createContractCheckerAspectTemplate(java.lang.String) 178 */ 179 public void testCreateContractCheckerAspectTemplate() 180 throws Exception 181 { 182 // JUnitDoclet begin method createContractCheckerAspectTemplate 183 // JUnitDoclet end method createContractCheckerAspectTemplate 184 } 185 186 /*** 187 * Tests ContractCheckerAspectTemplateGeneratorTestwrite() 188 * @throws Exception if an unexpected situation occurs. 189 * @see org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator#write(org.acmsl.contractchecker.ContractCheckerAspectTemplate, java.io.File) 190 */ 191 public void testWrite() 192 throws Exception 193 { 194 // JUnitDoclet begin method write 195 // JUnitDoclet end method write 196 } 197 198 199 200 /*** 201 * JUnitDoclet moves marker to this method, if there is not match 202 * for them in the regenerated code and if the marker is not empty. 203 * This way, no test gets lost when regenerating after renaming. 204 * Method testVault is supposed to be empty. 205 * @throws Exception if an unexpected situation occurs. 206 */ 207 public void testVault() 208 throws Exception 209 { 210 // JUnitDoclet begin method testcase.testVault 211 // JUnitDoclet end method testcase.testVault 212 } 213 214 public static void main(String[] args) 215 { 216 // JUnitDoclet begin method testcase.main 217 junit.textui.TestRunner.run(ContractCheckerAspectTemplateGeneratorTest.class); 218 // JUnitDoclet end method testcase.main 219 } 220 }

This page was automatically generated by Maven